<style scoped>
.layout{
    border: 1px solid #d7dde4;
    background: #f5f7f9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.layout-logo{
    width: 100px;
    height: 30px;
    background: #5b6270;
    border-radius: 3px;
    float: left;
    position: relative;
    top: 15px;
    left: 20px;
}
.layout-nav{
    width: 420px;
    margin: 0 auto;
    margin-right: 20px;
}
</style>
<template>
    <div class="layout">
        <Layout>
            <Header>
                <Menu mode="horizontal" theme="dark" active-name="1">
                    <div class="layout-logo"  :style="{color: '#fff',lineHeight:'30px', background:'none',width: 'fit-content'}"><h2>H5-1709后台管理系统</h2></div>
                    <div class="layout-nav" :style="{float: 'right', width: 'fit-content'}">
                        <MenuItem name="1">
                           <Avatar icon="person"/>
                        </MenuItem>
                        <MenuItem name="2">
                            <Icon type="ios-keypad"></Icon>
                            退出
                        </MenuItem>
                    </div>
                </Menu>
            </Header>
            <Layout :style="{height: '100%'}">
                <Sider hide-trigger :style="{background: '#fff'}">
                    <Menu active-name="1-2" theme="light" width="auto" :open-names="['1']">
                        <Submenu name="1">
                            <template slot="title">
                                <Icon type="ios-navigate"></Icon>
                                菜单列表
                            </template>
                         <Submenu name="2">
                            <template slot="title">
                                <Icon type="ios-people"></Icon>
                                用户管理
                            </template>
                            <MenuItem name="2-1"><router-link to="/user">用户列表</router-link></MenuItem>
                        </Submenu>
                        <Submenu name="3">
                            <template slot="title">
                                <Icon type="ios-analytics"></Icon>
                               新闻管理
                            </template>
                            <MenuItem name="3-1"><router-link to="/news">新闻列表</router-link></MenuItem>
                        </Submenu>
                        <Submenu name="4">
                            <template slot="title">
                                <Icon type="ios-keypad"></Icon>
                               分类管理
                            </template>
                            <MenuItem name="4-1"><router-link to="/cate">分类列表</router-link></MenuItem>
                        </Submenu>
                         <Submenu name="5">
                            <template slot="title">
                                <Icon type="ios-keypad"></Icon>
                               产品管理
                            </template>
                            <MenuItem name="5-1"><router-link to="/product">产品列表</router-link></MenuItem>
                        </Submenu>
                        </Submenu>
                        
                    </Menu>
                </Sider>
                <Layout :style="{padding: '0 24px 24px'}">
                   
                    <Content :style="{padding: '24px',margin: '24px 0', minHeight: '280px', background: '#fff'}">
                       <router-view></router-view>
                    </Content>
                </Layout>
            </Layout>
        </Layout>
    </div>
</template>
<script>
    export default {
        
    }
</script>
